package yunjiao.javatutorials.apache.kafka.model;

import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Map;

/**
 * 业务消息类
 *
 * @author yangyunjiao
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class NotificationEvent extends BaseMessage {
    private String userId;
    private NotificationType type; // ORDER_CONFIRMED, SHIPPING_UPDATE
    private String title;
    private String content;
    private Map<String, Object> additionalData;

    public enum NotificationType {
        ORDER_CONFIRMED, SHIPPING_UPDATE
    }
}
